<?php

namespace app\admin\model\pt;

use think\Model;
use app\admin\model\pt\Depart as DepartModel;


class AlarmMonth extends Model
{

    

    

    // 表名
    protected $name = 'pt_alarm_month';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    

    

    public function depart()
    {
        return $this->belongsTo(DepartModel::class, 'pt_depart_id', 'id')->setEagerlyType(1);;
    }





}
